package cn.changeforyou.web.cloud.webBase.auth;

/***
 * 权限容器
 */
public class AuthContainer {

    static ThreadLocal<AuthModel> authModelThreadLocal = new ThreadLocal<>();

    public static AuthModel getAuthModel(){
        return authModelThreadLocal.get();
    }

    public static void setAuthModel(AuthModel authModel) {
        authModelThreadLocal.set(authModel);
    }

    public static void clear(){
        authModelThreadLocal.set(null);
    }
}
